<?php

namespace App\Admin\Forms;





use App\Models\Team;

class Banner extends Config
{

    public $title = 'Banner';

    public function form()
    {
        $this->multipleImage('page_banners', '页面banner池')->name(function ($file) {
            $name = md5(uniqid().rand(1,99999999));
            return $name.'.'.$file->guessExtension();
        })->autoUpload()->move('banners')->saving(function ($paths) {
            return implode(',', $paths);
        })->limit(100);

        $this->multipleImage('page_recruit_banners', '征才banner')->name(function ($file) {
            $name = md5(uniqid().rand(1,99999999));
            return $name.'.'.$file->guessExtension();
        })->autoUpload()->move('banners')->saving(function ($paths) {
            return implode(',', $paths);
        })->limit(100);
    }

}
